<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <jsp:include page="../basePath.jsp"></jsp:include>
    <title>生成报送文件</title>
    <script language="javascript" src="page/submitted/generate_file.js" charset="utf-8"></script>
  </head>
  
  <body class="scrolling">
  	<input type="hidden" id="jobStatus" value="${etlContextVars.jobStatus }">
	<div class="div">
	  <table cellspacing="0" cellpadding="0" width="100%">
		<tr><td>
		  <div class="tab-nav">
			<ul>
				<li class="current">
					<a href="javascript:void(0)"><span>生成报送文件</span></a>
				</li>																				
				<li>
					<a href="m/submit_log/initquery"><span>生成文件查询</span></a>
				</li>
        <li>
					<a href="m/submit_file/initbackfile"><span>发送文件查询</span></a>
				</li>
			</ul>
		  </div>
		</td></tr>
	  </table>
	  
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2" >
        <tr>
          <td colspan="2">
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="point_bg">
	     	  <tr>
	     	  <td height="30" align="right">
	     	  	<input type="button" value="生成文件" class="button" id="genFile" >
	     	  	<input type="button" value="报送文件" class="button" id="senFile" >
	     	  	<input type="button" value="下载文件" class="button" id="dowFile" >
	     	  </td>
	     	  </tr>
	     	</table>
		  </td>
        </tr>
        <tr>
     	  <td width="100%" align="center" valign="top">
			<table width="100%" class="form-table" border="0" align="center" >
			  <colgroup>
				<col class="label-column" width="100%">
			  </colgroup>
			  <tr height="24">			
			   	<td align="left" style="padding:3px 8px;line-height:1.5"> 
			   		<b id="taskServerActived" style="color:red"></b>
			   		<b id="taskInfo" style="color:#888"></b>
			   	</td>
			  </tr>
			  <tr id="infoTr1" height="24" style="display:none">
			 	<td align="left" style="padding:3px 8px;font-size:12px">
			 		数据日期：${etlContextVars.busiDate }&nbsp;&nbsp;&nbsp;
		    		导出方式：${etlContextVars.increment == '1' ? '增量' : '全量' }&nbsp;&nbsp;&nbsp;
			<!--		运行类型：${etlContextVars.autoRun == 'false' ? '手动采集' : '自动采集'} -->
				</td>				    				    		
			  </tr>
			  <tr id="infoTr2" height="24" style="display:none">
			 	<td align="left" style="padding:3px 8px;font-size:12px">
			 		是否重报：${submitLog.resubmitted ? "是" : "否" }&nbsp;&nbsp;&nbsp;
		    		内部版本号：${submitLog.internalVersion }&nbsp;&nbsp;&nbsp;
					接口规范版本信息：${submitLog.interfaceVersion }			    				    		
			  </tr>
			</table>
		  </td>
		</tr>
	  </table>
	  <div id="ListDiv" align="center" style="padding:0 2px;display:none" >
	   <div style="width:100%;overflow-x:auto;scrollbar-face-color: #dcdcdc; scrollbar-highlight-color: #ffffff; scrollbar-shadow-color: #ffffff; scrollbar-3dlight-color: #ffffff; scrollbar-arrow-color: #737373; scrollbar-track-color: #ffffff; scrollbar-darkshadow-color: #ffffff;">
	  	<table id="01060202resultList_0" cellSpacing="0" cellPadding="0" width="100%" >
    	  <tr><td>
        	<table id="01060202resultList_0_read" cellSpacing="0" cellPadding="0" width="100%" height="100%" border="0" bordercolor="#AEAEAE" rules="rows" style="border-collapse:collapse;font-size:9pt;">
          	  <thead>
            	<tr class="queryList_titlebg" height="27">
            	  <th height="27" align="center" width="38%" nowrap class="table_td_font">文件名</th>
            	  <th height="27" align="center" width="16%" nowrap class="table_td_font">当前文件记录数</th>
            	  <th height="27" align="center" width="46%" nowrap class="table_td_font">文件说明</th>
            	</tr>
   			  </thead>
  			  <tbody id="file_list">
<c:forEach var="sf" items="${submitLog.submitFiles }">
  			 	<tr class="table_td_font" bgColor="#ffffff">
				  <td align="center"  height="25px" class="queryList_linebg" nowrap>${sf.fileName}</td>
				  <td align="center"  height="25px" class="queryList_linebg" nowrap>${sf.dataCount < 0 ? '' : sf.dataCount}</td>
				  <td align="left"  height="25px" class="queryList_linebg" nowrap>${sf.fileFullName}</td>
				</tr>
</c:forEach>
          	  </tbody>
        	</table>
   		  </td></tr>
  	  	</table>
  	   </div>
	  </div>
	</div>
  
  </body>
</html>
